package com.surfilter.platform.base.exception;

import org.apache.log4j.Logger;

import com.surfilter.platform.base.model.ResultCode;

public class SystemException extends ExceptionBase{
	
	public SystemException(String msg) {
		super(msg);
		this.setErrorCode(ResultCode.SYSTEM_ERROR_CODE);
	}
	
	public SystemException(Throwable t) {
		super(t);
	}
	
	public SystemException(String msg, Throwable t){
		super(msg,t);
	}

	private static final long serialVersionUID = -5731530470937124250L;

	protected void setErrorCode(int code) {
		this.errorCode = code;
	}
	


	/* (non-Javadoc)
	 * @see com.surfilter.platform.base.exception.ExceptionBase#getErrorCode()
	 */
	@Override
	public int getErrorCode() {
		return this.errorCode;
	}

	protected Logger getLogger() {
		return Logger.getLogger(ExceptionBase.LOG_SYSTEM);
	}

}
